package yx.model;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.hibernate.annotations.GenericGenerator;

/**
 * BsResume entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "bs_resume", catalog = "")
public class BsResume implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer studentId;
	private String corporationName;
	private String title;
	private String position;
	private String headFlag;
	private Date startDate;
	private Date endDate;
	private String region;

	// Constructors

	/** default constructor */
	public BsResume() {
	}

	/** full constructor */
	public BsResume(Integer studentId, String corporationName, String title, String position, String headFlag, Date startDate, Date endDate, String region) {
		this.studentId = studentId;
		this.corporationName = corporationName;
		this.title = title;
		this.position = position;
		this.headFlag = headFlag;
		this.startDate = startDate;
		this.endDate = endDate;
		this.region = region;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "increment")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "ID", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "STUDENT_ID")
	public Integer getStudentId() {
		return this.studentId;
	}

	public void setStudentId(Integer studentId) {
		this.studentId = studentId;
	}

	@Column(name = "CORPORATION_NAME")
	public String getCorporationName() {
		return this.corporationName;
	}

	public void setCorporationName(String corporationName) {
		this.corporationName = corporationName;
	}

	@Column(name = "TITLE", length = 32)
	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	@Column(name = "POSITION", length = 32)
	public String getPosition() {
		return this.position;
	}

	public void setPosition(String position) {
		this.position = position;
	}

	@Column(name = "HEAD_FLAG", length = 1)
	public String getHeadFlag() {
		return this.headFlag;
	}

	public void setHeadFlag(String headFlag) {
		this.headFlag = headFlag;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "START_DATE", length = 10)
	public Date getStartDate() {
		return this.startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "END_DATE", length = 10)
	public Date getEndDate() {
		return this.endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	@Column(name = "REGION")
	public String getRegion() {
		return this.region;
	}

	public void setRegion(String region) {
		this.region = region;
	}

}